package com.candy.candyproduct.bean;

import com.frameworkset.orm.annotation.ESId;
import lombok.Data;
import org.frameworkset.elasticsearch.entity.ESBaseData;

import java.util.List;

/**
 * @author suYanLong
 * @date 2022年08月01日 10:45
 */
@Data
public class EsQuestion extends ESBaseData {

    @ESId(readSet = true, persistent = false)
    private Long esId;

    private Long questionId;

    private String title;

    private List<String> keywords;

    private Integer channelId;

    public EsQuestion() {

    }

    public EsQuestion(Long questionId, String title, List<String> keywords, Integer channelId) {
        this.esId = questionId;
        this.questionId = questionId;
        this.title = title;
        this.keywords = keywords;
        this.channelId = channelId;
    }

}
